#include<iostream>
#include<string>
using namespace std;
typedef long long LL;
char temp[20] = "9223372036854775807";
string s;
int main()
{
	cin >> s;
	cout << s << endl;
	if (s.size() >= 20) {
		cout << "BigInteger" << endl;
		return 0;
	}
	if (s.size() == 19) {
		bool flag = 0;
		for (int i = 0; i < s.size(); i++) {
			if (s[i] > temp[i]) {
				cout << "BigInteger" << endl;
				flag = 1;
				break;
			}
			if (s[i] < temp[i]) {
				cout << "long" << endl;
				flag = 1;
				break;
			}
		}
		if (flag) {
			cout << "long" << endl;
		}
	}
	else {
		LL ans = 0;
		for (int i = 0; i < s.size(); i++) {
			ans = ans * 10 + s[i] - '0';
		}
		cout << ans << endl;
		if (ans <= 127) {
			cout << "byte" << endl;
		}
		else if (ans <= 32767) {
			cout << "short" << endl;
		}
		else if (ans <= 2147483647) {
			cout << "int" << endl;
		}
		else {
			cout << "long" << endl;
		}
	}
	return 0;
}